<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<title>Insert title here</title>
		<script type="text/javascript">
			function changeImage(){
					
					document.getElementById("image").src="<%=request.getContextPath()%>/show.Code?a="+new Date().getTime();
					return false;
				}
		</script>
	</head>
	<body>
		<form action="<%=request.getContextPath() %>/prove.Code" method="post">
			name:<input type="text" name="name" /><br>
			 <a href="javascript:;" onclick="return changeImage();"><img src="<%=request.getContextPath()%>/show.Code" id="image" /></a>
			<a href="javascript:;" onclick="return changeImage() ;" >换一张</a>	<br/>
			code:<input type="text"  name="code">
			<input type="submit" value="提交">
		</form>
	</body>
</html>